<extend name="Public:base"/>
<block name="content">
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-info">
            <div class="panel-heading">增加分类</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-12">
                        <form action="{$action}" class="form-horizontal" method="post">
                            <div class="form-group">
                                <label for="title" class="col-sm-2 control-label">节点名称：</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="title" id="title" placeholder="节点名称" value="{$info.title}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="name" class="col-sm-2 control-label">节点链接：</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="name" name="name" placeholder="节点链接" value="{$info.name}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">节点状态：</label>

                                <div class="col-sm-10">
                                    <label class="radio-inline">
                                        <input type="radio" name="status" value="1" checked> 启用
                                    </label>
                                    <label class="radio-inline ">
                                        <input type="radio" name="status" value="0"> 禁用
                                    </label>

                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <input type="hidden" name="id" value="{$info.id}"/>
                                    <button type="submit" class="btn btn-default">添加</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    ThinkPHP.setValue('status', "{$info.status}");
</script>
    </block>